package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum SpotType implements IEnum<Integer> {
    VACATION(180300, "休闲度假"),
    FARMHOUSE(180301, "农家乐/民俗游"),
    RESORT(180302, "度假村"),
    NATURE_BATHING(180303, "天然浴场"),
    PARK(180304, "公园"),
    STREET_PARK(180305, "街心公园"),
    SQUARE(180306, "广场"),
    AMUSEMENT_PARK(180307, "游乐园"),
    ZOO(180308, "动物园"),
    BOTANICAL_GARDEN(180309, "植物园");

    @JsonValue
    private final String name;
    @EnumValue
    private final Integer value;

    SpotType(Integer value, String name) {
        this.value = value;
        this.name = name;
    }
}
